package com.ky.pro.java.fx.spring.entity;

import lombok.Data;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Kevin
 */
@Data
public class Klass {

    Long id;

    String name;

    Set<Student> students;

    public Klass() {
        students = new HashSet<>();
    }

    public void addStudent(Student student) {
        students.add(student);
    }

}
